package com.xxgc.mybatis.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * 该类是返回公共对象的枚举enum
 * 一般用于  返回的状态码  massage信息
 * */
@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {
    //通用
    SUCCESS(200,"SUCCESS"),
    LOGINSUCCESS(200,"登录成功"),
    REGISTERSUCCESS(200,"注册成功"),
    ERROR(500,""),
    REGISTERERROR(500,"用户已经注册"),
    LOGINERROR(500,"用户名或密码错误");
    //定义状态码
    private final Integer code;
    //定义信息
    private final String massage;
}
